package com.scuec.groupfive.vo;

import com.scuec.groupfive.entity.MockExam;
import lombok.Data;
import java.util.List;

@Data
public class ExamPaperVO {
    private Long examId;
    private String examType;
    private String examStrategy;
    private Integer totalQuestions;
    private Integer timeLimit;
    private List<QuestionDetailVO> questions;

    public ExamPaperVO(MockExam exam, List<QuestionDetailVO> questions) {
        this.examId = exam.getExamId();
        this.examType = exam.getExamType();
        this.examStrategy = exam.getExamStrategy();
        this.totalQuestions = exam.getTotalQuestions();
        this.timeLimit = exam.getTotalTime();
        this.questions = questions;
    }
}